package www.sofn.com.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
public class SpringDocConfig {

    @Bean
    public OpenAPI springShopOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("健康电商")
                        .version("1.0")
                        .description("健康电商")
                        .termsOfService("http://127.0.0.1:8080")
                        .license(new License().name("Apache 2.0")
                                .url("http://127.0.0.1:8080")));
    }
}
